package com.bugstack.domain.credit.model.entity;

import com.bugstack.domain.award.model.valobj.TaskStateVO;
import com.bugstack.domain.credit.event.CreditAdjustSuccessEvent;
import com.bugstack.types.event.BaseEvent;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: czb
 * @Description: TODO
 * @DateTime: 2025/3/27 22:01
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TaskEntity {
    /** 活动ID */
    private String userId;
    /** 消息主题 */
    private String topic;
    /** 消息编号 */
    private String messageId;
    /** 消息主体 */
    private BaseEvent.EventMessage<CreditAdjustSuccessEvent.CreditAdjustSuccessMessage> message;
    /** 任务状态；create-创建、completed-完成、fail-失败 */
    private TaskStateVO state;
}
